package com.laolei.core.datasource.config;

import java.util.Map;

import org.apache.ibatis.session.Configuration;
import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = DruidConfig.dbprefix)
public class DruidConfig {
	final static String dbprefix = "laolei.mybatis";
	/*
	 * 默认的db配置 设置该值后，后续的各个具体db节点配置，会继承该配置 </br> 默认值，系统默认定义
	 */
	private DruidProperties defaultConfig;
	/*
	 * 具体的DB配置参数
	 */
	private Map<String, DruidNode> dbNode;

	private Configuration configuration;

	public Map<String, DruidNode> getDbNode() {
		return dbNode;
	}

	public void setDbNode(Map<String, DruidNode> dbNode) {
		this.dbNode = dbNode;
	}

	public DruidProperties getDefaultConfig() {
		return defaultConfig;
	}

	public void setDefaultConfig(DruidProperties defaultConfig) {
		this.defaultConfig = defaultConfig;
	}

	public Configuration getConfiguration() {
		return configuration;
	}

	public void setConfiguration(Configuration configuration) {
		this.configuration = configuration;
	}
}
